#ifndef QDRIVESHOWWIDGET_H
#define QDRIVESHOWWIDGET_H

#include <QWidget>

#include <QTreeWidget>

class QDriveAttribute;

class QDriveShowWidget : public QWidget
{
    Q_OBJECT
public:
    explicit QDriveShowWidget(const QString &name,QWidget *parent = 0);
    void    addValue();
    void    removeSelectValue();

signals:

public slots:
    void    attributeClicked(const QModelIndex &index);
    void    valueClicked(const QModelIndex &index);
    void    attributeChanged();
    void    valueChanged(int row,int column,const QString &value);
protected:
    void    updateIndex();
protected:
    QTreeWidget     *m_attributeTree;
    QTreeWidget     *m_valueTree;
    QString         m_name;
    QMap<QTreeWidgetItem*,QDriveAttribute*> m_attributes;
    QList<QTreeWidgetItem*>              m_values;
};

#endif // QDRIVESHOWWIDGET_H
